webpackJsonp([12],{"312R":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"BackgroundImageMixin",methods:{backgroundImageClass:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a="",l="",s=t&&void 0!==t.details,i="xxl"==this.$mq?"xl":this.$mq;if(s?a="background-image: url("+t.details[i].url+"?timestamp="+(new Date).getTime()+");":e.placeholderSize&&(a="background-image: url(https://via.placeholder.com/",e.placeholderSize[0]&&e.placeholderSize[1]&&(a=a+e.placeholderSize[0]+"x"+e.placeholderSize[1]+");")),e.isFlexible){var o=s?t.details[i].width:e.placeholderSize[0],r=s?t.details[i].height:e.placeholderSize[1];l="padding-top:"+this.calculateBackgroundAspectRatio(o,r)}return a+l},calculateBackgroundAspectRatio:function(t,e){return"xxl"!==this.$mq?(t>=e?e/t*100:t/e*100)+"%":e+"px"}}}},GAoA:function(t,e,a){var l=a("VU/8")(a("312R"),null,!1,null,null,null);t.exports=l.exports},MI3a:function(t,e,a){var l=a("VU/8")(a("gmAW"),a("ass6"),!1,null,null,null);t.exports=l.exports},VISJ:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"article"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("img",{attrs:{src:t.article._embedded["wp:featuredmedia"][0].media_details.sizes.medium_large.source_url}})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 categories"},[a("div",{staticClass:"category-label green-bg"},[a("span",{domProps:{innerHTML:t._s(t.article._embedded["wp:term"][0][0].name)}})])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 title"},[a("a",{attrs:{target:"_blank",href:t.article.link}},[a("span",{domProps:{innerHTML:t._s(t.article.title.rendered)}})]),t._v(" "),a("div",{staticClass:"date"},[t._v("\n\t\t\t\t"+t._s(this.formatDate(t.article.date))+"\n\t\t\t")])])]),t._v(" "),t.excerpt?a("div",{staticClass:"row d-none d-lg-block"},[a("div",{staticClass:"col-12 excerpt"},[a("span",{domProps:{innerHTML:t._s(t.article.excerpt.rendered)}})])]):t._e()])},staticRenderFns:[]}},ass6:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"wp-blog"},[a("div",{staticClass:"row wp-blog-header",style:t.backgroundStyle}),t._v(" "),0==this.hide?a("div",{staticClass:"row max-1140 wp-blog-subheader"},[t._m(0),t._v(" "),a("div",{staticClass:"col-8 col-sm-9 title-container blue-bg"},[a("div",{staticClass:"title"},[t._v("\n\t\t\t\t"+t._s(t.$t("blog.title"))+"\n\t\t\t")]),t._v(" "),a("div",{staticClass:"subtitle"},[t._v("\n\t\t\t\t"+t._s(t.$t("blog.subtitle"))+"\n\t\t\t")])])]):t._e(),t._v(" "),t.hasPosts&&0==this.hide?a("div",{staticClass:"row max-1140 wp-blog-content"},[a("div",{staticClass:"col-lg-8"},[a("single-wp-article",{attrs:{excerpt:"",article:t.allPosts[0]}})],1),t._v(" "),a("div",{staticClass:"col-lg-4 d-none d-lg-block"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 col-lg-12"},[a("single-wp-article",{attrs:{article:t.allPosts[1]}})],1),t._v(" "),a("div",{staticClass:"col-6 col-lg-12"},[a("single-wp-article",{attrs:{article:t.allPosts[2]}})],1)])])]):t._e(),t._v(" "),0==this.hide?a("div",{staticClass:"row max-1140 wp-blog-footer"},[a("div",{staticClass:"col-12"},[a("a",{attrs:{href:"https://www.imqgroupblogzine.it/",target:"_blank"}},[a("main-button",{attrs:{bgcolor:"blue",text:t.$t("vai al blog"),arrow:""}})],1)])]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-4 col-sm-3 logo-container white-bg"},[e("img",{attrs:{src:"/frontend/img/logoIMQgroup.svg"}})])}]}},gmAW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("oNO5"),s=a.n(l),i=a("NYxO"),o=a("GAoA"),r=a.n(o),c=Object.assign||function(t){for(var e=1;e1}}),Object(i.c)({allPosts:"wpBlog/all"})),methods:c({},Object(i.b)({fetchPosts:"wpBlog/fetch"}),{calculateBackgroundImageStyle:function(){var t=this;this.image?axios.get(this.$store.endpointFor("image/"+this.image)).then(function(e){var a=e.data.data;t.backgroundStyle=t.backgroundImageClass(a,{isFlexible:!0,placeholderSize:[2560,960]})}):this.backgroundStyle=this.backgroundImageClass(null,{isFlexible:!0,placeholderSize:[2560,960]})}})}},oNO5:function(t,e,a){var l=a("VU/8")(a("zL8V"),a("VISJ"),!1,null,null,null);t.exports=l.exports},zL8V:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SingleWPArticle",props:{article:{required:!0},excerpt:{type:Boolean,default:!1}},methods:{formatDate:function(t){return moment.locale("it"),moment(t).format("DD MMMM YYYY")}}}}});